﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Data;

namespace Microsoft.JCI.Common.Utility
{
    public abstract class DatabaseBase
    {
         protected Database _db = null;

        public DatabaseBase()
        {                         
            _db = DatabaseFactory.CreateDatabase(); 
        }

        public DatabaseBase(string dbName)
        {
            _db = DatabaseFactory.CreateDatabase(dbName); 
        }

        public virtual Database CurrentDatabase
        {
            get { return _db; }
        }
    }
}
